import presetRemToPx from '@unocss/preset-rem-to-px'
import { defineConfig, presetUno } from 'unocss'

export default defineConfig({
  presets: [
    presetUno(),
    //将样式的默认单位从rem改为px
    presetRemToPx({
      baseFontSize: 4
    })
  ],
  // 自定义样式规则
  rules: [
    // // 宽高
    // [/^w-([\d]+)$/, ([_, num]) => ({ width: `${num}px` })],
    // [/^h-([\d]+)$/, ([_, num]) => ({ height: `${num}px` })]
  ]
})
